package no.la58.scribbles.client.impl;

import no.la58.scribbles.client.ClientFactory;
import no.la58.scribbles.client.services.MessageService;
import no.la58.scribbles.client.services.MessageServiceAsync;
import no.la58.scribbles.client.services.UserService;
import no.la58.scribbles.client.services.UserServiceAsync;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;

public class ClientFactoryDesktopImpl implements ClientFactory {

    private static MessageServiceAsync messageService = GWT.create(MessageService.class);
    private static UserServiceAsync userService = GWT.create(UserService.class);

    private static EventBus eventbus = new SimpleEventBus();

    @Override
    public EventBus getEventBus() {
	return eventbus;
    }

    @Override
    public UserServiceAsync getSecurityService() {
	return userService;
    }

    @Override
    public MessageServiceAsync getMessageService() {
	return messageService;
    }

}
